#!/bin/bash
rm ../build/ ../deploy/ -rf

#运行编译
source  /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi

export FIP_DEPLOYDIR_ROOT=$PWD/../../image-ic530
make -f ../Makefile.sdk TF_A_CONFIG=nand  TF_A_DEVICETREE=stm32mp135f-lierda_nand-mx  DEPLOYDIR=$FIP_DEPLOYDIR_ROOT/arm-trusted-firmware all
make -f ../Makefile.sdk TF_A_CONFIG=sdcard   TF_A_DEVICETREE=stm32mp135f-lierda_nand-mx  DEPLOYDIR=$FIP_DEPLOYDIR_ROOT/arm-trusted-firmware all
make -f ../Makefile.sdk TF_A_CONFIG=optee TF_A_DEVICETREE=stm32mp135f-lierda_nand-mx  DEPLOYDIR=$FIP_DEPLOYDIR_ROOT/arm-trusted-firmware stm32
